<% if @photos.length != 0 %>	
		<div id="pics">
			<ul>
				<% @photos.each do |photo| %>
					<li><%= link_to image_tag(photo.pic.url(:thumb), :alt=>photo.title, :title =>photo.title),
												:controller=>:photo,:action=>:showdetail,
												:id=>photo%>
						创意名称：<span><%=photo.title%></span>												
					</li>
				<% end %>
			</ul>
		</div>	
		<div class="continue">
	        <%=link_to "继续上传", :action => :new -%>
	    </div>
<% else %>
		<div class="upload">
			<p>您还没有作品</p>
			<%=link_to "上传", :action => :new -%>
		</div>
<% end %>